package com.deep.stream.consumer.receiver;

import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.stereotype.Component;

/**
 * @author deeprado
 */
@Slf4j
@Component
@EnableBinding(MsgClient.class)
public class MsgReceiver02 {

    @StreamListener(MsgClient.INPUT2)
    public void process2(String message) {
        log.info("StreamReceiver:{}", message);
    }
}
